package com.momoc.logic;
import com.momoc.logic.service.TestService;
import com.momoc.mrpc.annotation.EnabledMRpc;
import com.momoc.mrpc.config.MRpcConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@EnabledMRpc(baseScans = {"com.momoc.logic"})
@SpringBootApplication
public class AppRun {
    public static void main(String[] args) throws Exception {
        ConfigurableApplicationContext run = SpringApplication.run(AppRun.class);
        TestService bean = run.getBean(TestService.class);
        System.out.println(bean.toString());
    }
}
